<?php

	/// BE AWARE - lots of work in progress on this page, so its a bit messy :(
	/// object oriented stuff is sadly lacking in this file so far...
	/// but it should be easy to understand :)
	
    /**
     *  Fat Controller ref from My Idea of Fun by Will Self.
     *  
     *  The Fat Controller is called by JAVASCIPT in the skillclouds template 
     *  to deliver dynamic content in an ajax style.
     *  
     *  Once fatcontroller recieves a request, it chanels it to the corect .php file 
     *  and echos back the responce for the javascript to deal with.
     *  
     *  
     */
	
	
	// if i recieve a request for information and skill
	if (isset($_REQUEST['skill']) && isset($_REQUEST['information'])) {
		
		include('class-skillcontent.php');
		$newskill = $_REQUEST['skill'];
		$info_request = $_REQUEST['information'];
		
		$s_content = new skillcontent_demo($newskill);
		echo $s_content->get_content($info_request);
		
		
	}
	
	// if a recive a request to process a form
	
	
	// if i recieve a serialized object...
	
	
	
	
	

	
?>
